﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IISDeploy.Domain.Repository;
using IISDeploy.Domain.Core;

namespace IISDeploy.Controller
{
    public class MainHandler
    {
        private readonly IServerRepository serverRepository;

        public MainHandler(IServerRepository serverRepository)
        {
            this.serverRepository = serverRepository;
        }

        public List<Server> GetServerList()
        {
            return serverRepository.GetAll<Server>().ToList<Server>();
        }      
    }
}
